
var template = require('art-template');

module.exports = function(app){

    app.get('/test', function(req, res){
        var html = template.renderFile("tpl/index", {title:'sdjklfs'});
        res.send(html);
    });

    app.get('/api/ssq', function(req, res){
        var data = global.SsqData;
        res.json(data);
    });
    app.get('/ssq', function(req, res){
        var html = template.renderFile('tpl/ssq/index', {
            pageTitle : '双色球分析'
        });
        res.send(html);
    });

    app.get('/ssq/list/A', function(req, res){
        var html = template.renderFile('tpl/ssq/SingleList_A', {
            pageTitle : 'SingleList-A'
        });
        res.send(html);
    });
};